package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.CvEducationalBackgroundMapper;
import com.ruoyi.resume.domain.CvEducationalBackground;
import com.ruoyi.resume.service.ICvEducationalBackgroundService;

/**
 * 教育背景Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-30
 */
@Service
public class CvEducationalBackgroundServiceImpl implements ICvEducationalBackgroundService 
{
    @Autowired
    private CvEducationalBackgroundMapper cvEducationalBackgroundMapper;

    /**
     * 查询教育背景
     * 
     * @param id 教育背景主键
     * @return 教育背景
     */
    @Override
    public CvEducationalBackground selectCvEducationalBackgroundById(Long id)
    {
        return cvEducationalBackgroundMapper.selectCvEducationalBackgroundById(id);
    }

    /**
     * 查询教育背景列表
     * 
     * @param cvEducationalBackground 教育背景
     * @return 教育背景
     */
    @Override
    public List<CvEducationalBackground> selectCvEducationalBackgroundList(CvEducationalBackground cvEducationalBackground)
    {
        return cvEducationalBackgroundMapper.selectCvEducationalBackgroundList(cvEducationalBackground);
    }

    /**
     * 新增教育背景
     * 
     * @param cvEducationalBackground 教育背景
     * @return 结果
     */
    @Override
    public int insertCvEducationalBackground(CvEducationalBackground cvEducationalBackground)
    {
        return cvEducationalBackgroundMapper.insertCvEducationalBackground(cvEducationalBackground);
    }

    /**
     * 修改教育背景
     * 
     * @param cvEducationalBackground 教育背景
     * @return 结果
     */
    @Override
    public int updateCvEducationalBackground(CvEducationalBackground cvEducationalBackground)
    {
        return cvEducationalBackgroundMapper.updateCvEducationalBackground(cvEducationalBackground);
    }

    /**
     * 批量删除教育背景
     * 
     * @param ids 需要删除的教育背景主键
     * @return 结果
     */
    @Override
    public int deleteCvEducationalBackgroundByIds(Long[] ids)
    {
        return cvEducationalBackgroundMapper.deleteCvEducationalBackgroundByIds(ids);
    }

    /**
     * 删除教育背景信息
     * 
     * @param id 教育背景主键
     * @return 结果
     */
    @Override
    public int deleteCvEducationalBackgroundById(Long id)
    {
        return cvEducationalBackgroundMapper.deleteCvEducationalBackgroundById(id);
    }
}
